feat: Graph pathfinder#638
Merged
Merged
Conversation
bc35464 to
60aa8bd
Compare
added 23 commits
April 23, 2025 06:10
Add all points of the edges to the path. Add unit tests.
Don't limit the distance when finding the graph entry and exit points, start/goal can be arbitrarily far away from the graph.
Always return PathfinderResult, also in private functions.
If the graph entry (closest vertex to start location) is closer to the graph exit (closest vertex to the goal location) than the range, the GraphPathfinder can't generate a useful path. Return goalNodeInvalid == true in this case and log an error.
An edge with a single vertex results in an infinite loop.
Once calculated for a grid cell, cache the penalty in the pathfinder. The penalty depends currently only on the position and not the heading, so this requires a limited amount of memory. This should reduce the calls for getNodePenalty() by an order of magnitude, but needs to be tested on a bigger field with difficult situations.
a93660b to
ebd4190
Compare
added 3 commits
April 23, 2025 07:43
Also log should now indicate which pathfinder is being used.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.